package com.example.AIstudy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.sql.Date;
//{"subscribe":1,"openid":"o-7aj0hBDfVEzsK2P_F9U-IwosZ4","nickname":"_captain",
//        "sex":1,"language":"zh_CN","city":"杭州","province":"浙江","country":"中国",
//        "headimgurl":"http:\/\/thirdwx.qlogo.cn\/mmopen\/9RibwCfvUfQNnmNiarD2S8A8YNHC4IGOLgzSBRMaeyDSG0JBpmHXZLNOxqJypjnib8vFkDUCbn5IicLvL4ibDps5LvzAEZs5FjQiaib\/132",
//        "subscribe_time":1539600947,"remark":"","groupid":0,"tagid_list":[],"subscribe_scene":"ADD_SCENE_QR_CODE","qr_scene":0,"qr_scene_str":""}

@Data
@TableName("user")
public class User  implements Serializable{

        @TableId(value = "id", type = IdType.AUTO)
        private Integer id;

        private String nickname;

        //微信的openID
        @TableField("openid")
        private String openid;


        //籍贯
        @TableField("province")
        private String province;

        @TableField("city")
        private String city;

        @TableField("country")
        private String country;

        private int sex;

        //用户的头像信息
        @TableField("headimgurl")
        private String headimgurl;

        //自设定用户等级（能力水平）
        @TableField("selflevel")
        private int selflevel;

        //综合分析的用户等级（能力水平）
        @TableField("overlevel")
        private int overlevel;

        //用户的评价
        @TableField("description")
        private String description;
}
